package TransactionImplementation

import (
	"SalaryPayment/AbstractTransaction"
	"SalaryPayment/Model"
	"SalaryPayment/ModelImplementation"
)

type ChangeSalariedTransaction struct {
	itsSalary float64
	AbstractTransactions.ChangeClassificationTransaction
}

func (cst *ChangeSalariedTransaction) GetClassification() Model.PaymentClassification {
	return ModelImplementation.NewSalariedClassification(cst.itsSalary)
}

func (cst *ChangeSalariedTransaction) GetSchedule() Model.PaymentSchedule {
	return ModelImplementation.MonthlySchedule()
}
